import request from '@/utils/request'

// 查询房间清洁列表
export function listClean(query) {
  return request({
    url: '/hotal/clean/list',
    method: 'get',
    params: query
  })
}

// 查询房间清洁详细
export function getClean(cleanId) {
  return request({
    url: '/hotal/clean/' + cleanId,
    method: 'get'
  })
}

// 新增房间清洁
export function addClean(data) {
  return request({
    url: '/hotal/clean',
    method: 'post',
    data: data
  })
}

// 修改房间清洁
export function updateClean(data) {
  return request({
    url: '/hotal/clean',
    method: 'put',
    data: data
  })
}

// 删除房间清洁
export function delClean(cleanId) {
  return request({
    url: '/hotal/clean/' + cleanId,
    method: 'delete'
  })
}
